-- GENERATED SPELL FOR [Dawnblade Reservist] --


function spell0_25087(pUnit, Event) --@Raptor Strike,n/a--
pUnit:FullCastSpellOnTarget(32915,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25087', 570, 1)
end

function spell1_25087(pUnit, Event) --@Steady Shot,n/a--
pUnit:FullCastSpellOnTarget(34120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25087', 1500, 1)
end

function Sorts_25087(pUnit, Event)
local choix_sorts_25087 = math.random(0, 1)
if choix_sorts_25087 == 0 then
pUnit:RegisterEvent('spell0_25087', 1, 1)
end
if choix_sorts_25087 == 1 then
pUnit:RegisterEvent('spell1_25087', 1, 1)
end
end

function mob25087_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25087', math.random(1500, 3000), 1)
end

function mob25087_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25087_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25087_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25087, 1, 'mob25087_Action')
RegisterUnitEvent(25087, 2, 'mob25087_Leave')
RegisterUnitEvent(25087, 3, 'mob25087_Kill')
RegisterUnitEvent(25087, 4, 'mob25087_Die')
